package com.example.base.url.uil

import com.blankj.utilcode.util.SPUtils
import okhttp3.Interceptor
import okhttp3.Response

class Token :Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {
        val token = SPUtils.getInstance().getString("token")
        val build = chain.request().newBuilder().addHeader("Authori-zation", token).build()
        return chain.proceed(build)
    }
}